<?php
    $query="SELECT * FROM Przepis";

    $wynik=mysql_query($query) or die('zapytanie niudane: '.mysql_error());

    echo "<form action=\"skrypty/archiwum/akcje/modUsPrzepis.php?login=$login\" method=\"post\">";
		echo "<table><tr>
				<td>Usuń</td>
                <td>Modyfikuj</td>
				<td>Opis</td>
			</tr>";


        while($line = mysql_fetch_array($wynik, MYSQL_NUM)){
            $adres = "skrypty/archiwum/form/podglPrzepis.php?id={$line[0]}";
			echo "<tr>";
                echo "<td><input type=checkbox name=\"{$line[0]}\"></td>\n";
                echo "<td><Input type=radio name=\"mod\" value=\"{$line[0]}\"></td>\n";
                echo "<td><a target=\"_blank\" href=\"$adres\" 
                        onclick=\"window.open('$adres', '_blank', 'resizable=no,width=800,height=600').focus(); return false\">{$line[1]}</a></td>\n";
            echo "</tr>\n";
		}
		echo "</table>";
        echo "<input type=submit name=\"usun\" id=\"usun\" value=\"usuń\"> | ";
        echo "<input type=submit name=\"modyfikuj\" id=\"modyfikuj\" value=\"modyfikuj\">";
        echo "</form>";

?>
